//
//  DailyCollectionViewCell.m
//  Inner  Voice
//
//  Created by Martin.Wang on 16/3/3.
//  Copyright © 2016年 徐海宇. All rights reserved.
//

#import "DailyCollectionViewCell.h"

#import "UIImageView+WebCache.h"

@implementation DailyCollectionViewCell

- (void)awakeFromNib {
    //    给imaageView加载网络图片，之前先用1.jpg
    self.image.image = [UIImage imageNamed:@"1.jpg"];
    
}

- (void)layoutSubviews {
    [super layoutSubviews];
}

- (void)loadImageWithStr:(NSString*)str{
    
    NSURL *url = [NSURL URLWithString:str];
    
    [self.image sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"1.jpg"]];
    self.image.layer.cornerRadius = 8;
    self.image.layer.masksToBounds = YES;
    [self.image.layer setBorderWidth:2];
    [self.image.layer setBorderColor:(__bridge CGColorRef _Nullable)([UIColor blueColor])];
    self.image.contentMode = UIViewContentModeScaleAspectFill;

}

@end
